package com.zhl.abstract5;

public class Test {
    public static void main(String[] args) {
        //目标：掌握抽象类的好处
        Animal a = new Dog();
        a.setName("小狗");
        a.cry();
        Animal b = new Cat();
        b.setName("小猫");
        b.cry();
    }
}
